/**
 * Created by DukeCrushIt on 2015/7/29.
 */
//module game{
    class RankInfo{
        public rank:number=0;
        public topLevel:number=0;
        public topScore:number=0;
        public figureurl:string;
        public name:string;
        public constructor(data:any){
            //super();
            if( data != null && data != undefined)
                this.initFromData(data);
        }
        public initFromData(data:any){
            this.rank = data.rank;
            this.topLevel = data.topLevel;
            this.topScore = data.topScore;
            this.figureurl = data.figureurl;
            this.name = data.name;
        }
    }
//}